import s from './request.js'

const LoginApi = {
  loginApiUser: function (p) {
    return new Promise((resolve, reject) => {
      s({
        url: 'login',
        method: 'post',
        data: p
      }).then(res => {
        resolve(res)
      }).catch(err => {
        reject(err)
      })
    })
  }
}

export default LoginApi
